/*
 * Copyright (c) 2017. 深圳一七网络科技. All rights reserved.
 */

package com.fenxiangle.yueding.framework.api;

import com.fenxiangle.yueding.entity.bo.FoucsBo;
import com.fenxiangle.yueding.entity.bo.FoucsListBo;
import com.fenxiangle.yueding.entity.bo.HomeDataBo;
import com.fenxiangle.yueding.entity.bo.HomeFilterBo;
import com.fenxiangle.yueding.entity.bo.MsgBo;
import com.fenxiangle.yueding.entity.bo.PageBo;
import com.fenxiangle.yueding.entity.bo.UnMsgBo;
import com.fenxiangle.yueding.entity.bo.UnReadCountBo;
import com.fenxiangle.yueding.entity.bo.UserCenterBo;
import com.suozhang.framework.entity.bo.Result;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;


public interface HomeApi {

    /**
     * 获取首页数据
     */
    @POST("v1/index/getIndex.shtml")
    Observable<Result<List<HomeDataBo>>> getHomeData(@Body HomeFilterBo filterBo);


    /**
     * 关注
     */
    @POST("v1/user/attention/follow.shtml")
    Observable<Result<String>> attentionFollow(@Body FoucsBo filterBo);
    /**
     * 取消关注
     */
    @POST("v1/user/attention/unFollow.shtml")
    Observable<Result<String>> attentionUnFollow(@Body FoucsBo filterBo);
    /**
     * 关注列表
     */
    @POST("v1/user/attention/followList.shtml")
    Observable<Result<List<FoucsListBo>>> getFoucsList(@Body PageBo filterBo);

    /**
     * 消息列表
     * */

    @POST("v1/message/selectMessageList.shtml")
    Observable<Result<List<MsgBo>>> selectMessageList(@Body PageBo filterBo);
    /**
     * 消息列表
     * */

    @POST("v1/message/selectDiffMessageCount.shtml")
    Observable<Result<UnReadCountBo>> selectDiffMessageCount(@Body UnMsgBo filterBo);
}
